<?php

namespace app\api\validate;

use think\Validate;

class Reg extends Validate
{
    protected $rule = [
        ['name',            'chsDash|length:2,16',          '昵称只能为汉字、字母、数字|昵称长度在2-16之间'],
        ['send_code',       'alphaNum',                     '邀请码错误'],
    ];

    protected $scene = [
        'index'             => ['name', 'send_code'],
    ];
}
